package sn.gandal.agriculture.agrimobile.j2me.gui;

import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;

/**
 *
 * @author dysow
 */
public class ErrorsForm extends Alert implements CommandListener
{   
    Command back;
    public ErrorsForm(String errors) {
        super("Page d'Erreurs",errors, null, AlertType.ERROR);
         back=new Command ("Retour", Command.BACK,1);
         addCommands(back);
         this.setTimeout(FOREVER);         
    }

    public void addCommands(Command cmd)
    {
	super.addCommand(cmd);
    }


    public void commandAction(Command c, Displayable d) {
        this.setTimeout(0);        

    }
}
